cmake_minimum_required(VERSION 3.12)
project(cpp11)

set(CMAKE_BUILD_TYPE DEBUG)
set(CMAKE_CXX_FLAGS "/OPT:NOREF /MTd /std:c++14 /EHsc")
set(CMAKE_CXX_FLAGS_DEBUG "/DEBUG   /EHsc")
set(CMAKE_CXX_FLAGS_RELEASE "")

message("current dir"  ${CMAKE_CURRENT_SOURCE_DIR})
message(info ${SOURCE})

link_directories("./third/libevent/lib")
link_libraries(jsoncpp_static.lib event_core.lib event.lib event_extra.lib event_openssl.lib  Iphlpapi.lib Bcrypt.lib)
include_directories("./third/jsoncpp/include/json")
include_directories("./third/libevent/include/libevent/include")
include_directories(".")

add_library(cppnetwork udp_libevent.cpp tcp_client.cpp tcp_server_libevent.cpp tcp_swarm_libevent.cpp)

